package o;

import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;
import java.util.Arrays;

public final class fwl {
    private int ˏ;
    private final int[] ॱ = new int[10];

    void ˊ() {
        this.ˏ = 0;
        Arrays.fill(this.ॱ, 0);
    }

    fwl ˊ(int i, int i2) {
        if (i >= 0 && i < this.ॱ.length) {
            this.ˏ = (1 << i) | this.ˏ;
            this.ॱ[i] = i2;
        }
        return this;
    }

    boolean ˊ(int i) {
        if (((1 << i) & this.ˏ) != 0) {
            return true;
        }
        return false;
    }

    int ˏ(int i) {
        return this.ॱ[i];
    }

    int ˎ() {
        return Integer.bitCount(this.ˏ);
    }

    int ˏ() {
        return (2 & this.ˏ) != 0 ? this.ॱ[1] : -1;
    }

    int ॱ(int i) {
        return (16 & this.ˏ) != 0 ? this.ॱ[4] : i;
    }

    int ˋ(int i) {
        return (32 & this.ˏ) != 0 ? this.ॱ[5] : i;
    }

    int ॱ() {
        return (DnsConfig.MAX_CACHE_ENTRIES & this.ˏ) != 0 ? this.ॱ[7] : 65535;
    }

    void ˋ(fwl o_fwl) {
        for (int i = 0; i < 10; i++) {
            if (o_fwl.ˊ(i)) {
                ˊ(i, o_fwl.ˏ(i));
            }
        }
    }
}
